<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>基本信息</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th width="10%">发货单号</th>
                    <th width="10%">批次号</th>
                    <th>销售员</th>
                    <th>发货站点</th>
                    <th>发货仓库</th>
                    <th width="20%">备注</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $delivery->delivery_no }}</td>
                    <td>
                        @if($delivery->status < 5)
                            <a class="grid-editable-batch_no" href="#" data-type="text" data-pk="{{ $id }}"
                               data-url="{{ '/xqc/overseas-in/os/'.$id }}"
                               data-value="{{ $delivery->batch_no }}">{{ $delivery->batch_no }}
                            </a>
                        @else
                            {{ $delivery->batch_no }}
                        @endif
                    </td>
                    <td>{{ \App\Util\User::getUsernameById($delivery->seller_id) }}</td>
                    <td>{{ \App\Models\Basics\SysArea::getSysAreaById($delivery->area_id) }}</td>
                    <td>{{ \App\Models\OverSeasBa\Warehouse::getCodeById($delivery->warehouse_id) }}</td>
                    <td>{{ $delivery->remarks }}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>产品信息</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>发货箱数</th>
                    <th>SKU总数</th>
                    <th>产品总件数</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ $delivery->total_box }}</td>
                    <td>{{ $delivery->total_sku }}</td>
                    <td>{{ $delivery->total_unit }}</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<script language="JavaScript" type="text/javascript">
    $(function () {
        $('.grid-editable-batch_no').editable({"emptytext":"<i class=\"fa fa-pencil\"><\/i>","showbuttons":false,"mode":"inline","name":"batch_no"});
    });
</script>
